﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Media;
using Vision001.Base;

namespace Vision001.Models
{
    public class WorkStationXY
    {
        public string Name;
        public double X;
        public double Y;
    }

    public class WorkStationXYEntry
    {
        public string Name;
        public string Code;
        public double X;
        public double Y;
    }

    public class WorkStationModel : NotifyPorperChanged
    {
        private int stationid;

        /// <summary>
        /// 工位id
        /// </summary>
        public int Stationid
        {
            set
            {
                stationid = value;
                // this.SetProperty();
            }
            get
            {
                return stationid;
            }
        }

        private bool stationtestres;

        /// <summary>
        /// 工位测试结果
        /// </summary>
        public bool StationTestRes
        {
            set
            {
                stationtestres = value;
                // this.SetProperty();
            }
            get
            {
                return stationtestres;
            }
        }

        private string stationname;

        /// <summary>
        /// 工位名称
        /// </summary>
        public string StationName
        {
            set
            {
                stationname = value;
                this.SetProperty();
            }
            get
            {
                return stationname;
            }
        }

        private string statiocode;

        /// <summary>
        /// 二维码
        /// </summary>
        public string StationCode
        {
            set
            {
                statiocode = value;
                this.SetProperty();
            }
            get
            {
                return statiocode;
            }
        }

        private string item1name;

        /// <summary>
        /// 测试项1名称
        /// </summary>
        public string Item1Name
        {
            set
            {
                item1name = value;
                this.SetProperty();
            }
            get
            {
                return item1name;
            }
        }

        private string item1vaule;

        /// <summary>
        /// 测试项1的值
        /// </summary>
        public string Item1Vaule
        {
            set
            {
                item1vaule = value;
                this.SetProperty();
            }
            get
            {
                return item1vaule;
            }
        }

        private string item2name;

        /// <summary>
        /// 测试项2名称
        /// </summary>
        public string Item2Name
        {
            set
            {
                item2name = value;
                this.SetProperty();
            }
            get
            {
                return item2name;
            }
        }

        private string item2vaule;

        /// <summary>
        /// 测试项2的值
        /// </summary>
        public string Item2Vaule
        {
            set
            {
                item2vaule = value;
                this.SetProperty();
            }
            get
            {
                return item2vaule;
            }
        }

        private string item3name;

        /// <summary>
        /// 测试项3名称
        /// </summary>
        public string Item3Name
        {
            set
            {
                item3name = value;
                this.SetProperty();
            }
            get
            {
                return item3name;
            }
        }

        private string item3vaule;

        /// <summary>
        /// 测试项3的值
        /// </summary>
        public string Item3Vaule
        {
            set
            {
                item3vaule = value;
                this.SetProperty();
            }
            get
            {
                return item3vaule;
            }
        }

        private string stationres;

        /// <summary>
        /// 测试项结果文字
        /// </summary>
        public string StationRes
        {
            set
            {
                stationres = value;
                this.SetProperty();
            }
            get
            {
                return stationres;
            }
        }

        private SolidColorBrush stationcolor;

        /// <summary>
        /// 测试项结果颜色
        /// </summary>
        public SolidColorBrush StationColor
        {
            set
            {
                stationcolor = value;
                this.SetProperty();
            }
            get
            {
                return stationcolor;
            }
        }

        private SolidColorBrush stationshowcolor;

        /// <summary>
        /// 按钮显示颜色
        /// </summary>
        public SolidColorBrush StationShowColor
        {
            set
            {
                stationshowcolor = value;
                this.SetProperty();
            }
            get
            {
                return stationshowcolor;
            }
        }

        private Brush stationfontcolor;

        /// <summary>
        /// 显示字体颜色
        /// </summary>
        public Brush StationFontColor
        {
            set
            {
                stationfontcolor = value;
                this.SetProperty();
            }
            get
            {
                return stationfontcolor;
            }
        }

        /// <summary>
        /// 是否执行
        /// </summary>
        private bool _isExecute;

        /// <summary>
        /// 是否执行
        /// </summary>
        public bool IsExecute
        {
            set
            {
                _isExecute = value;
                this.SetProperty();
            }
            get
            {
                return _isExecute;
            }
        }
    }
}